package com.batsoft.trade.disruptor.account;

import com.batsoft.trade.constant.HandleType;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/10/27 17:45
 */
@Getter
@Setter
public class AccountAdd {

    private Long userId;

    private Integer type;

    private BigDecimal count;

    public AccountAdd(Long userId, HandleType type, BigDecimal count) {
        this.userId = userId;
        this.type = type.getValue();
        this.count = count;
    }
}
